package cn.zshprint.serein.config;

import org.elasticsearch.client.Client;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;

/**
 * @Description: 用于配置初始化 ElasticsearchTemplate
 * @Author: Jonas
 * @Date: 2020-04-16 11:25
 */
public class MyEsTemplate extends ElasticsearchTemplate {

    public MyEsTemplate(Client client, ElasticsearchConverter elasticsearchConverter) {
        super(client, elasticsearchConverter,
                new MyResultMapper(elasticsearchConverter.getMappingContext()));
    }
}

